from tkinter import *


def callback(event):
    print( "clicked at:", event.x, event.y)
    s = (event.x, event.y)
    txt.set(s)

win = Tk()
win.geometry('200x120')
win.title('鼠标事件')

frame = Frame(win, width=200, height=100, bg = 'cyan')
frame.bind("<Button-1>", callback)
frame.pack()

txt =  StringVar()
L = Label(win, width=20, textvariable = txt)
L.pack() 
win.mainloop() 